package lpca.utils 
{
	import flash.display.DisplayObject;
	import flash.display.Sprite
	/**
	 * ...
	 * @author ...
	 */
	
	public class ContainerViewCells 
	{
		public static const TYPE_START: int = 0;
		public static const TYPE_FINISH: int = 1;
		public static const TYPE_EMPTY: int = 2;
		public static const TYPE_WALL: int = 3;	
		public static const TYPE_MASK: int = 4;
		
		public static const width = 32;
		public static const height = 32;
		
		public static function getCells(type: int): DisplayObject
		{
			switch (type)
			{
				case TYPE_START: return new Texture_Start().getChildAt(0);
				case TYPE_FINISH:return new Texture_Finish().getChildAt(0);
				case TYPE_EMPTY: return new Texture_Ground().getChildAt(0);				
				case TYPE_WALL:  return new Texture_Wall().getChildAt(0);
				case TYPE_MASK: return new  Texture_UnVisible().getChildAt(0);
			}			
			return null;
		}
		
	}

}